/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package chameleon.model.NuGatStructure.symbTable;

import chameleon.model.NuGatStructure.utils.Node;
import chameleon.gameSolver.NuGat.NuGatInterface;
import chameleon.model.NuGatStructure.NuGatStructure;
import com.sun.jna.Pointer;

/**
 *
 * @author simon
 */
public class SymbLayer extends NuGatStructure {
    
    public SymbLayer(Pointer layer,NuGatInterface nugat ){
        super( layer, nugat);
    }
    
    public void declareStateVar(Node var_name,SymbType type){
        nugat_.SymbLayer_declare_state_var(this.ptr(), var_name.ptr(), type.ptr());
    }
    
    public String getName(){
        return nugat_.SymbLayer_get_name(this.ptr());
    }
    
    public boolean canDeclareVar (Node name){
        return (nugat_.Chameleon_SymbLayer_can_declare_var (this.ptr(),
                name.ptr())) == 1;
    }
    
}
